<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>流程定义管理</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/themes/icon.css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript">
        function searchProcessDefinition(){
            $("#dg").datagrid('load',{
                "s_name":$("#s_name").val()
            });
        }
        
        function formatAction(val,row) {
            return "<a href='${pageContext.request.contextPath}/processDefinition/showView.do?deploymentId="+row.deploymentId+"&diagramResourceName="+row.diagramResourceName+"' target='_blank'> 查看流程图</>"
        }

    </script>



</head>
<body style="margin: 1px">
<table id="dg" title="流程定义管理" class="easyui-datagrid"
       fitColumns="true" pagination="true" rownumbers="true"
       url="${pageContext.request.contextPath}/processDefinition/list.do" fit="true" toolbar="#tb">
    <thead>
    <tr>
        <th field="cb" checkbox="true" align="center"></th>
        <th field="id" width="80" align="center">编号</th>
        <th field="name" width="60" align="center">流程名称</th>
        <th field="key" width="50" align="center">流程定义的key</th>
        <th field="version" width="20" align="center">版本</th>
        <th field="resourceName" width="70" align="center">流程定义的规则文件名称</th>
        <th field="diagramResourceName" width="70" align="center">流程定义的规则图片名称</th>
        <th field="deploymentId" width="30" align="center">流程部署Id</th>
        <th field="aa" width="30" align="center" formatter="formatAction">操作</th>
    </tr>
    </thead>
</table>
<div id="tb">
    <div>
        &nbsp;流程定义名称&nbsp;<input type="text" id="s_name" size="20" onkeydown="if(event.keyCode==13) searchProcessDefinition()"/>
        <a href="javascript:searchProcessDefinition()" class="easyui-linkbutton" iconCls="icon-search" plain="true">搜索</a>
    </div>
</div>

</body>
</html>
